#ifndef EURLBET_H
#define EURLBET_H

#include "rlbet.h"

class EuropeanRouletteBet : public RouletteBet
{
	public:
		// This constructor sets the actual numbers and odds -
		// RouletteBet sets everything else
		//
		EuropeanRouletteBet(uint8 betId, int32 amount);

		virtual bool8 isInside();
		virtual int8 getOdds();
		virtual int8 getColor();

		static bool8 isValidBet(uint8 betId);

	private:
		virtual void setOdds();

	protected:
		int8  m_odds;
};

inline bool8
EuropeanRouletteBet::isValidBet(uint8 betid)
{
	return (bool8)(
		betid >=   0 && betid <=  36 ||		/* not  37  */
		betid >=  38 && betid <=  49 ||		/* not  50  */
		betid >=  51 && betid <=  52 ||		/* not  53  */
		betid >=  54 && betid <= 112 ||		/* not 113  */
		betid >= 114 && betid <= 187 ||
		betid >= 188 && betid <= 224);		/* neighbor bets */
											/* not 225 - 227 */
}

#endif 
